package com.mellivora.pundit.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: mellivora
 * @description: swagger接口测试
 * @author: jin.rao@sunyard.com
 * @create: 2019-03-14 09:29
 **/

@RestController
@RequestMapping(value = "swagger")
@Api(value = "swagger接口测试")
public class SwaggerController {

    @ApiOperation(value="接口", notes="测试的接口" ,httpMethod="POST")
    @ApiImplicitParams({
            @ApiImplicitParam(name="name", value="用户姓名", dataType = "String", required=true, paramType="form"),
            @ApiImplicitParam(name="id", value="id", dataType = "int", required=true, paramType="form")
    })
    @RequestMapping("word")
    public String HelloWord(String name,Integer id) {
        return "Hello Word";
    }
}
